<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>登录页面</title>
    <link rel="stylesheet" href="./assets/lib/layui/css/layui.css" />
    <link rel="stylesheet" href="./assets/css/login.css" />
  </head>
  <body>
    <!-- 头部logo区域 -->
    <div class="layui-main">
      <img src="./assets/images/logo.png" alt="" />
    </div>
    <!-- 登录注册区域 -->
    <div class="loginAndRegBox">
      <!-- 登录注册头部图片 -->
      <div class="title-box">
        <img src="./assets/images/login_title.png" alt="" id="title-img" />
      </div>
      <!-- 登录表单 -->
      <div class="login-box">
        <form class="layui-form" action="" id="form-login">
          <!-- 用户名 -->
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-username"></i>
            <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" id="login-username" />
          </div>
          <!-- 密码 -->
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>
            <input type="password" name="password" required lay-verify="required|pass" placeholder="请输入密码" autocomplete="off" class="layui-input" id="login-pwd" />
          </div>
          <!-- 登录按钮 -->
          <div>
            <button class="layui-btn layui-btn-fluid" lay-submit id="login-btn">登录</button>
          </div>
          <a href="javascript:;" id="go-register">去注册账号</a>
        </form>
      </div>
      <!-- 注册表单 -->
      <div class="reg-box">
        <form class="layui-form" action="" id="form-reg">
          <!-- 用户名 -->
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-username"></i>
            <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" id="reg-username" />
          </div>
          <!-- 密码 -->
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>
            <input type="password" name="password" required lay-verify="required|pass" placeholder="请输入密码" autocomplete="off" class="layui-input" id="reg-pwd" />
          </div>
          <!-- 确认密码 -->
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>
            <input type="password" name="repassword" required lay-verify="required|repass" placeholder="再次确认密码" autocomplete="off" class="layui-input" id="repassword" />
          </div>
          <!-- 注册按钮 -->
          <div>
            <button class="layui-btn layui-btn-fluid" lay-submit id="login-btn">注册</button>
          </div>
          <a href="javascript:;" id="go-login">去登录</a>
        </form>
      </div>
    </div>
    <!-- 引入jQuery文件 -->
    <script src="./assets/lib/jquery.js"></script>
    <!-- 引入layui.js文件 -->
    <script src="./assets/lib/layui/layui.all.js"></script>
    <!-- 引入baseAPI.js文件 -->
    <script src="./assets/js/baseAPI.js"></script>
    <!-- 引入自己的js文件 -->
    <script src="./assets/js/login.js"></script>
  </body>
</html>
